package com.zy.teacherSide.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.teacherSide.entity.StudentTaskAchievement;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 29787
 */
public interface IStudentTaskAchievementService extends IService<StudentTaskAchievement> {

    /**
     * 根据课程id，教师id，班级id,作业id查询当作业
     * @param courseId
     * @param taskId
     * @param teacherId
     * @param classroomId
     * @return StudentTaskAchievement
     */
    StudentTaskAchievement getStudentTaskAchievements(Integer courseId, Integer taskId, Integer teacherId, Integer classroomId, Integer studentId);

    /**
     * 根据课程id，教师id，班级id,作业id查询当作业
     * @param courseId
     * @param taskId
     * @param teacherId
     * @param classroomId
     * @return List<StudentTaskAchievement>
     */
     List<StudentTaskAchievement> getStudentTaskAchievement(Integer courseId, Integer taskId, Integer teacherId, Integer classroomId, Integer studentId);

    /**
     * 根据课程id，教师id，班级id,作业id查询当作业
     * @param courseId
     * @param taskId
     * @param teacherId
     * @param classroomId
     * @return List<StudentTaskAchievement>
     */
    List<StudentTaskAchievement> getStudentTaskAchievementByCourseIdAndTaskIdAndClassroomIdAndTeacherId(Integer courseId, Integer taskId, Integer teacherId, Integer classroomId);

}
